package com.jroky.base.service;

import com.github.pagehelper.PageInfo;
import com.github.yulichang.extension.mapping.base.MPJDeepService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface BaseService<T> extends MPJDeepService<T> {

    List<T> dataList(T entity);

    PageInfo<T> pageList(PageInfo pageInfo,T entity);

    List<T> fullSave(T o,List<T> list);

    void fullImportByExcel(HttpServletResponse response, MultipartFile file, T entity);

    void exportTemplateExcel(HttpServletRequest request, HttpServletResponse response, String fileName, Class<T> clz);
}



